package com.atguigu.tingshu.payment.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/***
 * service-payment feign调用接口
 * ClientController --> WxPayClientController
 */
@FeignClient(name = "service-payment",path = "/client/payment/wxPay",contextId = "paymentFeignClient")
public interface PaymentFeignClient {

    /**
     * 获取WeChatPay申请支付的url信息
     * @param params
     * @@return
     */
    @GetMapping("/getPayInfoFromWx")
    public String getPayInfoFromWx(@RequestParam Map<String,String> params);


}
